-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Patient Details Endpoints #174
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #174 +/- ##
==========================================
+ Coverage 97.51% 97.59% +0.08%
==========================================
Files 31 31
Lines 1486 1541 +55
==========================================
+ Hits 1449 1504 +55
Misses 37 37 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ericbuckley Looks pretty good to me, though I think some of the docstrings and error messages could potentially be improved to make the new functionality clearer to users. It seems like the error messages in the codebase are fairly minimal so I'm not sure if that was a decision the team previously made. I tend to err on the side of more descriptive errors.
Co-authored-by: Marcelle <53578688+m-goggins@users.noreply.github.com>
Co-authored-by: Marcelle <53578688+m-goggins@users.noreply.github.com>
Description
Add two new API endpoints that allow users to directly add/update patient record details in the MPI.
Related Issues
closes #159
Additional Notes
POST /patient -d '{"record": "...", "person": "person_reference_id"}'
Add the above endpoint to allow users to directly add a patient record to the MPI, skipping the record linkage algorithm.
PATCH /patient/<patient-reference-id> -d '{"record": "...", "person": "person_reference_id"}'
Add the above endpoint to allow users to update an existing patient record in the MPI.
NOTE: For this operation, the
record
andperson
attributes are optional. If not specified, the existing value will stay unchanged. However, at least 1 must be specified.<--------------------- REMOVE THE LINES BELOW BEFORE MERGING --------------------->
Checklist
Please review and complete the following checklist before submitting your pull request:
Checklist for Reviewers
Please review and complete the following checklist during the review process: